<div class="recomendations view">
<h2><?php  __('Recomendation');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $recomendation['Recomendation']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $recomendation['Recomendation']['name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Contenido'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $recomendation['Recomendation']['contenido']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Publica'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $recomendation['Recomendation']['publica']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Client'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($recomendation['Client']['name'], array('controller' => 'clients', 'action' => 'view', $recomendation['Client']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $recomendation['Recomendation']['created']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $recomendation['Recomendation']['modified']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Recomendation', true), array('action' => 'edit', $recomendation['Recomendation']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Recomendation', true), array('action' => 'delete', $recomendation['Recomendation']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $recomendation['Recomendation']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Recomendations', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Recomendation', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Clients', true), array('controller' => 'clients', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Client', true), array('controller' => 'clients', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List People', true), array('controller' => 'people', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Person', true), array('controller' => 'people', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related People');?></h3>
	<?php if (!empty($recomendation['Person'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Name'); ?></th>
		<th><?php __('Name2'); ?></th>
		<th><?php __('Name3'); ?></th>
		<th><?php __('Lastname'); ?></th>
		<th><?php __('Lastname2'); ?></th>
		<th><?php __('Lastname3'); ?></th>
		<th><?php __('Stateperson Id'); ?></th>
		<th><?php __('Gender Id'); ?></th>
		<th><?php __('Sex Id'); ?></th>
		<th><?php __('Fecha Nacimiento'); ?></th>
		<th><?php __('Typodocument Id'); ?></th>
		<th><?php __('Nro Documento'); ?></th>
		<th><?php __('Gruposanguineo Id'); ?></th>
		<th><?php __('Email'); ?></th>
		<th><?php __('Telefono'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th><?php __('User Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($recomendation['Person'] as $person):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $person['id'];?></td>
			<td><?php echo $person['name'];?></td>
			<td><?php echo $person['name2'];?></td>
			<td><?php echo $person['name3'];?></td>
			<td><?php echo $person['lastname'];?></td>
			<td><?php echo $person['lastname2'];?></td>
			<td><?php echo $person['lastname3'];?></td>
			<td><?php echo $person['stateperson_id'];?></td>
			<td><?php echo $person['gender_id'];?></td>
			<td><?php echo $person['sex_id'];?></td>
			<td><?php echo $person['fecha_nacimiento'];?></td>
			<td><?php echo $person['typodocument_id'];?></td>
			<td><?php echo $person['nro_documento'];?></td>
			<td><?php echo $person['gruposanguineo_id'];?></td>
			<td><?php echo $person['email'];?></td>
			<td><?php echo $person['telefono'];?></td>
			<td><?php echo $person['created'];?></td>
			<td><?php echo $person['modified'];?></td>
			<td><?php echo $person['user_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'people', 'action' => 'view', $person['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'people', 'action' => 'edit', $person['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'people', 'action' => 'delete', $person['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $person['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Person', true), array('controller' => 'people', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
